#include "xmlNode.h"

void xmlNode::setNum_term(QString value)
{
    this->num_term = value;
}

void xmlNode::setTerminal_node_list(QStringList head)
{
    this->terminal_node_list = head;
}

QString xmlNode::getNum_term()
{
    return this->num_term;
}

QStringList xmlNode::getTerminal_node_list()
{
    return this->terminal_node_list;
}

void xmlNode::setIsPainted(bool value)
{
    this->isPainted = value;
}

bool xmlNode::getIsPainted()
{
    return this->isPainted;
}

void xmlNode::incrementNumTerm()
{
    int temp = this->num_term.toInt();
    int swap = temp+1;
    this->num_term = this->num_term.number(swap, 10);

}

void xmlNode::decrementNumTerm()
{
    int temp = this->num_term.toInt();
    int swap = temp-1;
    this->num_term = this->num_term.number(swap, 10);

}

double xmlNode::getX()
{
    return this->x;
}

double xmlNode::getY()
{
    return this->y;
}

void xmlNode::setX(QString value)
{
    this->x = value.toDouble();
}

void xmlNode::setY(QString value)
{
    this->y = value.toDouble();
}
